package org.example.service;

import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 贷款逾期统计Excel导入导出服务接口
 */
public interface LoanOverdueStatisticsExcelService {
    
    /**
     * 导入Excel文件
     * @param file Excel文件
     * @return 导入成功的数据数量
     * @throws IOException IO异常
     */
    int importExcel(MultipartFile file) throws IOException;
    
    /**
     * 导出Excel文件
     * @param response HTTP响应
     * @throws IOException IO异常
     */
    void exportExcel(HttpServletResponse response) throws IOException;
    
    /**
     * 根据贷款类型导出Excel文件
     * @param loanType 贷款类型
     * @param response HTTP响应
     * @throws IOException IO异常
     */
    void exportExcelByLoanType(String loanType, HttpServletResponse response) throws IOException;
    
    /**
     * 根据维度导出Excel文件
     * @param dimension 维度
     * @param response HTTP响应
     * @throws IOException IO异常
     */
    void exportExcelByDimension(String dimension, HttpServletResponse response) throws IOException;
}
